/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package scalafx.scene.control

import javafx.scene.{control => jfxsc}
import scalafx.Includes._
import scalafx.util.SFXDelegate
import collection.JavaConversions._
import scalafx.scene.TextInputControl.TextInputControl
import javafx.event.EventHandler
import javafx.event.ActionEvent

object Button {
  implicit def sfxButton2jfx(v: Button) = v.delegate
}

/*
 - should implement all the JavaFX properties *** FAILED ***
[info]   Missing Properties: expandedPane (PropertyComparator.scala:50)
[info] - should implement all the JavaFX builder properties *** FAILED ***
[info]   Missing Properties: expandedPaneProperty, getExpandedPane, getPanes, setExpandedPane (PropertyComparator.scala:60)
 */
class Button(override val delegate:jfxsc.Button = new jfxsc.Button) extends Labeled with SFXDelegate[jfxsc.Button] {

  def cancelButton = delegate.cancelButtonProperty
  def cancelButton_= (v: Boolean) { cancelButton() = v }

  def defaultButton = delegate.defaultButtonProperty
  def defaultButton_= (v: Boolean) { defaultButton() = v }
}
